<?php

class Admin_ContactController extends Zend_Controller_Action
{

    public function init()
    {
        /* Initialize action controller here */
    	Zend_Layout::startMvc(array("layoutPath"=>APPLICATION_PATH."/layouts/scripts","layout"=>"admin"));
    	$auth = Zend_Auth::getInstance();
    	$infoUser = $auth->getIdentity();
    	$this->view->fullName = $infoUser->ADMINNAME;
    	$this->view->role = $infoUser->ROLE_ID;
    	$this->_model = new Default_Model_DbTable_Contact();
    	$this->upload = new Private_Upload();
    }

    public function indexAction()
    {
        // action body
        $this->view->headTitle("Quản Lý Liên Hệ","PREPEND");
        $this->view->title = "Quản lý liên hệ";
        $obj = new Default_Model_DbTable_Object();
        $allcontact = $this->_model->GetAll();
        $this->view->allContact = $allcontact;
        $this->view->allObj = $obj->getAllObject();
    }

    public function editAction()
    {
        // action body
    }

    public function delAction()
    {
        // action body
    }


}





